
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models.PLAN
{

	public partial class PLAN_TEMPPURCHASEDETAILModel:Virtual_PLAN_TEMPPURCHASEDETAILModel
	{
		
	}
	public class Virtual_PLAN_TEMPPURCHASEDETAILModel
	{
		[Display(Name = "燃煤临购计划明细编号")]
		public virtual string TEMPPURCHASEDETAIL_ID { get; set; }
		[Display(Name = "燃煤临购计划编号")]
		public virtual string TEMPPURCHASE_ID { get; set; }
		[Display(Name = "临购计划号")]
		public virtual string ODD_NUMBER { get; set; }
		[Display(Name = "计划项")]
		public virtual Nullable<byte> PLAN_TERM { get; set; }
        /// <summary>
        /// 计划类型（枚举ContractCategory）
        /// </summary>
		[Display(Name = "计划类型")]
		public virtual Nullable<byte> PLAN_TYPE { get; set; }
        /// <summary>
        /// 临购计划类型 （枚举TempPurchasePlanType）
        /// </summary>
		[Display(Name = "临购类型")]
		public virtual Nullable<byte> TEMP_PLAN_TYPE { get; set; }
		[Display(Name = "关联计划类型")]
		public virtual Nullable<byte> BUSINESSTYPE { get; set; }
		[Display(Name = "关联计划编号")]
		public virtual string BID { get; set; }
		[Display(Name = "合同流水号")]
		public virtual string ECONTRACT_CODE { get; set; }
		[Display(Name = "外部合同号")]
		public virtual string EXTERNAL_CODE { get; set; }
        /// <summary>
        /// 结算单位（枚举SettlementUnit）
        /// </summary>
		[Display(Name = "结算单位")]
		public virtual string PAY_UNIT { get; set; }
		[Display(Name = "矿务局")]
		public virtual string MININGBUREAU { get; set; }
		[Display(Name = "发站")]
		public virtual string SEND_STATION_ID { get; set; }
		[Display(Name = "到站")]
		public virtual string ARRIVE_STATION_ID { get; set; }
		[Display(Name = "物料"), Required]
		public virtual string MATERIEL_ID { get; set; }
		[Display(Name = "矿点")]
		public virtual string MINE_ID { get; set; }
		[Display(Name = "供应商"), Required]
		public virtual string SUPPLIER_ID { get; set; }
        /// <summary>
        /// 运输方式（枚举TransportType）
        /// </summary>
		[Display(Name = "运输方式")]
		public virtual Nullable<short> TRANSPORT_TYPE { get; set; }
        /// <summary>
        /// 路耗承担方式（枚举PathType）
        /// </summary>
		[Display(Name = "路耗承担方式"), Required, RegularExpression(@"^(0|[1-9]\d*)$", ErrorMessage = "路耗承担方式不能为空")]
		public virtual Nullable<byte> PATH_TYPE { get; set; }
		[Display(Name = "结算煤质"), Required, RegularExpression(@"^(0|[1-9]\d*)$", ErrorMessage = "结算煤质不能为空")]
		public virtual Nullable<decimal> COALQUALITY { get; set; }
        /// <summary>
        /// 价格类别（枚举PriceType）
        /// </summary>
		[Display(Name = "价格类别"), Required, RegularExpression(@"^(0|[1-9]\d*)$", ErrorMessage = "价格类别不能为空")]
		public virtual Nullable<byte> PRICE_TYPE { get; set; }
		[Display(Name = "合同价"), Required, RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "合同价必须大于0.")]
		public virtual Nullable<decimal> CONTRACTPRICE { get; set; }
        /// <summary>
        /// 结算方式（枚举SettlementType）
        /// </summary>
		[Display(Name = "结算方式"), Required, RegularExpression(@"^(0|[1-9]\d*)$", ErrorMessage = "结算方式不能为空")]
		public virtual Nullable<byte> SETTLE_TYPE { get; set; }
		[Display(Name = "运费")]
		public virtual Nullable<decimal> FREIGHT { get; set; }
		[Display(Name = "其他费用")]
		public virtual Nullable<decimal> OTHER_COST { get; set; }
		[Display(Name = "二次费用")]
		public virtual Nullable<decimal> SECOND_COST { get; set; }
		[Display(Name = "到厂价")]
		public virtual Nullable<decimal> FACTORY_PRICE { get; set; }
		[Display(Name = "到厂标煤单价")]
		public virtual Nullable<decimal> ARRIVE_STANDARD_PRICE { get; set; }
		[Display(Name = "计划煤量(吨)"), Required, RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "计划煤量必须大于0.")]
		public virtual Nullable<decimal> PLAN_COUNT { get; set; }
		[Display(Name = "铁路批复量")]
		public virtual Nullable<decimal> RAILWAY_QUANTITY { get; set; }
		[Display(Name = "待补量")]
		public virtual Nullable<decimal> WAITED_AMOUNT { get; set; }
		[Display(Name = "计划热值上限"), Required, RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "计划热值上限必须大于0.")]
		public virtual Nullable<decimal> QNET_UPPER { get; set; }
		[Display(Name = "计划热值下限"), Required, RegularExpression(@"^[1-9]+(.[0-9]{1,3})?$", ErrorMessage = "计划热值下限必须大于0.")]
		public virtual Nullable<decimal> QNET_LOWER { get; set; }
		[Display(Name = "全水分")]
		public virtual Nullable<decimal> MT { get; set; }
		[Display(Name = "挥发分")]
		public virtual Nullable<decimal> VAD { get; set; }
		[Display(Name = "硫分")]
		public virtual Nullable<decimal> S { get; set; }
		[Display(Name = "奖惩备注")]
		public virtual string MARK { get; set; }
		[Display(Name = "核定采购量")]
		public virtual Nullable<decimal> APPROVED_COUNT { get; set; }
        public virtual Nullable<decimal> APPROVED_COUNT1 { get; set; }
          
    }
}
